//
//  KHImageTool.h
//  KissHealth
//
//  Created by Mark on 2017/1/19.
//  Copyright © 2017年 Mark. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface KHImageTool : NSObject

//Base64图片 -> UIImage
+ (UIImage *)imageWithBase64String: (NSString *)imgSrc;

//UIImage -> Base64图片
+ (NSString *)base64StingWithImage: (UIImage *) image;

//UIImage -> 图片 (mimeType) .jpeg
+ (NSString *)mimeTypeWithImage: (UIImage *) image;

//UIImage -> 图片 (mimeType) image/png
+ (NSString *)mimeTypeWithImage1: (UIImage *) image;


+ (BOOL)imageHasAlpha: (UIImage *) image;

//UIImage -> (data)
+ (NSData *)dataWithImage:(UIImage *)image;

@end
